/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author TQNINH
 */
public class TestMyThread {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        MyThread objMyThread1 = new MyThread();
        objMyThread1.setName("A");
        MyThread objMyThread2 = new MyThread();
        objMyThread2.setName("B");
        
        System.out.println("Priority th1: " + objMyThread1.getPriority());
        System.out.println("Priority th2: " + objMyThread2.getPriority());
        
        objMyThread2.setPriority(9);
        
        System.out.println("Priority th1: " + objMyThread1.getPriority());
        System.out.println("Priority th2: " + objMyThread2.getPriority());
        
        objMyThread1.start();
        objMyThread2.start();
    }
}
